package cn.edu.tsinghua.xkk.entity;

import java.util.LinkedList;
import java.util.List;

/**
 * This is the class of Web page.
 * @author shibei
 *
 */
public class XKKPage {
	
	int ID;
	private String title;
	private String url;
	private String allContent;
	private String textContent;
	private String encoding;
	private boolean connectionFlag;
	private String type;//http, ftp and so on
	public List<Integer> linkChildren;
	
	public XKKPage()
	{
		linkChildren = new LinkedList<Integer>();
		this.connectionFlag = false;
	}
	
	public XKKPage(int ID)
	{
		this.ID = ID;
		linkChildren = new LinkedList<Integer>();
		this.connectionFlag = false;
	}
	
	public XKKPage(int ID, String url)
	{
		this.ID = ID;
		this.url = url;
		linkChildren = new LinkedList<Integer>();
		this.connectionFlag = false;
	}
	
	public int getID()
	{
		return ID;
	}
	
	public void setID(int ID)
	{
		this.ID = ID;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String t)
	{
		this.title = t;
	}
	
	public String getURL()
	{
		return url;
	}
	
	public void setURL(String u)
	{
		this.url = u;
	}
	
	public String getAllContent()
	{
		return this.allContent;
	}
	
	public void setAllContent(String c)
	{
		this.allContent = c;
	}
	
	public String getTextContent()
	{
		return this.textContent;
	}
	
	public void setTextContent(String c)
	{
		this.textContent = c;
	}
	
	public String getType()
	{
		return this.type;
	}
	
	public void setType(String t)
	{
		this.type = t;
	}
	
	public void setConnection(boolean b)
	{
		this.connectionFlag = b;
	}
	
	public boolean getConnection()
	{
		return this.connectionFlag;
	}
	
	public String getEncoding()
	{
		return this.encoding;
	}
	
	public void setEncoding(String s)
	{
		this.encoding = s;
	}
}
